'use strict';
// sort list:
//let list = document.getElementsByClassName('lang')

// var list = document.getElementById('test-list')
// //var list = document.getElementById('lang')
// var slist = list.children;
// console.log(slist);
// slist = Array.prototype.slice.call(slist).sort(function(a, b){
//    return a.innerHTML > b.innerHTML ? 1 : -1 ;
// })
// slist.forEach(function(el){
//      list.appendChild(el);
// })

var list = document.getElementById('test-list');
var haskell = document.createElement('li');
haskell.id = '敦煌';
haskell.innerText = '敦煌';
list.appendChild(haskell);

//删除节点
// var list = document.getElementById('con');
// var het = list.parentElement;
// var lisa = het.removeChild(list);

// console.log(list===lisa);

//设置值
// document.getElementById('con')
// document.getElementById('con').innerText = 'hello';

var input = document.getElementById('email');
input.value = 'https://www.敦煌.com';